package com.example.demo.customer;

import org.hibernate.secure.internal.JaccSecurityListener;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collections;
import java.util.List;


@Repository
public interface CustomerRepository extends JpaRepository<Customer,Long> {
//    @Override
//    public List<Customer> getCustomers(){
//        // TODD 连接真实数据库
//        return Collections.singletonList(
//                new Customer(3l,"da","222", "eamil@gmail.com")
//
//        );
//    }
}